home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DomonicDefence4.swf / scripts / DefineButton2_1252 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  537 b   |  22 lines

  1. on(release){
  2.    if(_root.magRune >= 2 && _root.windRune >= 3 && this.timey.timer == 100)
  3.    {
  4.       _root.magRune -= 2;
  5.       _root.windRune -= 3;
  6.       this.timey.timer = 0;
  7.       this.timey.timeIt = 1 + _root.spe * 0.03;
  8.       if(this.timey.timeIt > 3.2)
  9.       {
  10.          this.timey.timeIt = 3.2;
  11.       }
  12.       this.timey._visible = true;
  13.       _root.macepower = random(2) + 1;
  14.       _root.summonmace._visible = true;
  15.       _root.summonmace.play();
  16.    }
  17.    else
  18.    {
  19.       _root.messy = "Not enough Runes";
  20.    }
  21. }
  22.